Examples of UINT16


Examples of org.apache.qpid.management.domain.model.type.Uint16

    Configurator configurator = new Configurator();
    configurator.configure();
    Configuration configuration = Configuration.getInstance();
   
    assertEquals(new Uint8(), configuration.getType(1));
    assertEquals(new Uint16(), configuration.getType(2));
    assertEquals(new Uint32(), configuration.getType(3));
    assertEquals(new Uint64(), configuration.getType(4));
    assertEquals(new Str8(), configuration.getType(6));
    assertEquals(new Str16(), configuration.getType(7));
    assertEquals(new AbsTime(), configuration.getType(8));
View Full Code Here

Examples of org.apache.qpid.management.domain.model.type.Uint16

     */
    private void addTypeMappings()
    {
      Configuration configuration = Configuration.getInstance();
      configuration.addTypeMapping(new TypeMapping(1,new Uint8(),Names.NUMBER_VALIDATOR));
      configuration.addTypeMapping(new TypeMapping(2,new Uint16(),Names.NUMBER_VALIDATOR));
      configuration.addTypeMapping(new TypeMapping(3,new Uint32(),Names.NUMBER_VALIDATOR));
      configuration.addTypeMapping(new TypeMapping(4,new Uint64(),Names.NUMBER_VALIDATOR));
      configuration.addTypeMapping(new TypeMapping(6,new Str8(),Names.STRING_VALIDATOR));
      configuration.addTypeMapping(new TypeMapping(7,new Str16(),Names.STRING_VALIDATOR));
      configuration.addTypeMapping(new TypeMapping(8,new AbsTime()));
View Full Code Here

Examples of org.apache.qpid.management.domain.model.type.Uint16

     * A type mapping is an association between a code and a management type.
     */
    private void addTypeMappings()
    {
      addTypeMapping(1,new Uint8(),Names.NUMBER_VALIDATOR);
      addTypeMapping(2,new Uint16(),Names.NUMBER_VALIDATOR);
      addTypeMapping(3,new Uint32(),Names.NUMBER_VALIDATOR);
      addTypeMapping(4,new Uint64(),Names.NUMBER_VALIDATOR);
      addTypeMapping(6,new Str8(),Names.STRING_VALIDATOR);
      addTypeMapping(7,new Str16(),Names.STRING_VALIDATOR);
      addTypeMapping(8,new AbsTime());
View Full Code Here

Examples of org.apache.qpid.management.domain.model.type.Uint16

     * A type mapping is an association between a code and a management type.
     */
    private void addTypeMappings()
    {
      addTypeMapping(1,new Uint8(),Names.NUMBER_VALIDATOR);
      addTypeMapping(2,new Uint16(),Names.NUMBER_VALIDATOR);
      addTypeMapping(3,new Uint32(),Names.NUMBER_VALIDATOR);
      addTypeMapping(4,new Uint64(),Names.NUMBER_VALIDATOR);
      addTypeMapping(6,new Str8(),Names.STRING_VALIDATOR);
      addTypeMapping(7,new Str16(),Names.STRING_VALIDATOR);
      addTypeMapping(8,new AbsTime());
View Full Code Here

Examples of org.apache.qpid.management.domain.model.type.Uint16

    Configurator configurator = new Configurator();
    configurator.configure();
    Configuration configuration = Configuration.getInstance();
   
    assertEquals(new Uint8(), configuration.getType(1));
    assertEquals(new Uint16(), configuration.getType(2));
    assertEquals(new Uint32(), configuration.getType(3));
    assertEquals(new Uint64(), configuration.getType(4));
    assertEquals(new Str8(), configuration.getType(6));
    assertEquals(new Str16(), configuration.getType(7));
    assertEquals(new AbsTime(), configuration.getType(8));
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

import tv.porst.swfretools.parser.SWFParserException;

public class ActionGotoFrameParser {

  public static ActionGotoFrame parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final UINT16 frame = parseUINT16(parser, 0x00006, fieldName + "::Frame");

    return new ActionGotoFrame(actionCode, length, frame);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

import tv.porst.swfretools.parser.SWFParserException;

public class ActionJumpParser {

  public static ActionJump parse(final SWFBinaryParser parser, final UINT8 actionCode, final String fieldName) throws SWFParserException {
    final UINT16 length = parseUINT16(parser, 0x00006, fieldName + "::Length");
    final INT16 branchOffset = parseINT16(parser, 0x00006, fieldName + "::BranchOffset");

    return new ActionJump(actionCode, length, branchOffset);
  }
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static LineStyle4Array parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 lineStyleCount = parseUINT8(parser, 0x00006, fieldName + "::LineStyleCount");
    final UINT16 lineStyleCountExtended = parseUINT16If(parser, 0x00006, lineStyleCount.value() == 0xFF, fieldName + "::LineStyleCountExtended");

    final int normalizedCount = lineStyleCount.value() == 0xFF ? lineStyleCountExtended.value() : lineStyleCount.value();

    final List<LineStyle4> lineStyles = new ArrayList<LineStyle4>();

    for (int i=0;i<normalizedCount;i++) {
      lineStyles.add(LineStyle4Parser.parse(parser, String.format(fieldName + "::LineStyles[%d]", lineStyles.size())));
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

   * @throws SWFParserException Thrown if the structure could not be parsed.
   */
  public static LineStyle3Array parse(final SWFBinaryParser parser, final String fieldName) throws SWFParserException {

    final UINT8 lineStyleCount = parseUINT8(parser, 0x00006, fieldName + "::LineStyleCount");
    final UINT16 lineStyleCountExtended = parseUINT16If(parser, 0x00006, lineStyleCount.value() == 0xFF, fieldName + "::LineStyleCountExtended");

    final int normalizedCount = lineStyleCount.value() == 0xFF ? lineStyleCountExtended.value() : lineStyleCount.value();

    final List<LineStyle3> lineStyles = new ArrayList<LineStyle3>();

    for (int i=0;i<normalizedCount;i++) {
      lineStyles.add(LineStyle3Parser.parse(parser, String.format(fieldName + "::LineStyles[%d]", i)));
View Full Code Here

Examples of tv.porst.splib.binaryparser.UINT16

    final RGBA startColor = RGBAParser.parseIf(parser, fillStyleTypeValue == 0x00, fieldName + "::StartColor");
    final RGBA endColor = RGBAParser.parseIf(parser, fillStyleTypeValue == 0x00, fieldName + "::EndColor");
    final Matrix startGradientMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12, fieldName + "::StartGradientMatrix");
    final Matrix endGradientMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12, fieldName + "::EndGradientMatrix");
    final MorphGradient gradient = MorphGradientParser.parseIf(parser, fillStyleTypeValue == 0x10 || fillStyleTypeValue == 0x12, fieldName + "::Gradient");
    final UINT16 bitmapId = parseUINT16If(parser, 0x00006, fillStyleTypeValue >= 0x40 && fillStyleTypeValue <= 0x43, fieldName + "::BitmapId");
    final Matrix startBitmapMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue >= 0x40 && fillStyleTypeValue <= 0x43, fieldName + "::StartBitmapMatrix");
    final Matrix endBitmapMatrix = MatrixParser.parseIf(parser, fillStyleTypeValue >= 0x40 && fillStyleTypeValue <= 0x43, fieldName + "::EndBitmapMatrix");

    return new MorphFillStyle(fillStyleType, startColor, endColor, startGradientMatrix, endGradientMatrix, gradient, bitmapId, startBitmapMatrix, endBitmapMatrix);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.